<?
//<meta http-equiv="content-type" content="text/html; charset=utf-8">
include "head.php";

$query = sprintf("select * from {$table_prefix}subset where subset = '%s'", add_to_query($query_subset)); 
$result = mysql_query($query) or die("\n<br>Query:$query\n<br>Error:".mysql_error());
$row = mysql_fetch_array($result);
?>
<script language="javascript">
function subset_save()
{
	form1.cmd.value = "subset_save";
	form1.submit();
}
function subset_delete() {
	if(confirm('delete?')) {
		form1.cmd.value = "subset_delete";
		form1.submit();
	} 
}
</script>
<p><a href="index.php">HOME</a> / <strong>Subset</strong></p>
<p><strong>Set property</strong></p>
<form name="form1" method="post" action="subset_process.php">
<input type="hidden" name="query_subset" value="<?=$query_subset?>">
<input type="hidden" name="cmd" value="">
<table border="0" cellpadding="5" cellspacing="1" class="simple_table">
  <tr>
    <td valign="top">Subset</td>
    <td valign="top">
	<input name="edit_subset" type="text" value="<?=$row['subset']?>" size="32" maxlength="64" <? if ( $query_subset ) echo "readonly=''"; ?>>
	<input type="button" name="Button" value="Save" onClick="subset_save()">
	<input type="button" name="Button" value="Delete" onClick="subset_delete()">
	</td>
  </tr>
  <tr>
    <td valign="top">Task note<br>
      (automatically update) </td>
    <td valign="top"><textarea name="edit_note" cols="100" rows="20"><?=$row['note']?></textarea>
  <tr>
    <td valign="top">Update time</td>
    <td valign="top">
	<input name="edit_update_time" type="text" value="<?=$row['update_time']?>" size="32" maxlength="64">
	</td>
</table>
</form>
<p>&nbsp;</p>
<?
include "tail.php"
?>